<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<div>
	<B>Role Maintain - View Role (Permission required)</B> <BR> <BR>
	Role ID:
	<s:property value="role.id" />
	<BR> Role Name:
	<s:property value="role.name" />
	<BR> Role Description:
	<s:property value="role.desc" />
	<BR> Functions:
	<table border="1" class="dataViewTb" style="width:90%">
		<tr class="title">
			<th>Level</th>
			<th>Name</th>
			<th>Sub Functions</th>
		</tr>
		<s:iterator value="topFunctions">
			<tr>
				<th>+</th>
				<td><s:property value="name" /> ( <s:property value="code" />
					)</td>
				<td>&nbsp; <s:iterator value="children">
						<s:if test="kind=='FUNC'">
							<s:if test="showChkbox">
								<input type="checkbox" <s:if test="exists(code)">checked</s:if> />
							</s:if>
							<s:property value="name" />
								(
								<s:property value="code" />
								)
							</s:if>
					</s:iterator></td>
			</tr>
			<s:if test="kind=='MENU'">
				<s:iterator value="children">
					<s:if test="kind=='MENU'">
						<tr>
							<th>++</th>
							<td>&nbsp;&nbsp;&nbsp;&nbsp; <s:property value="name" /> (
								<s:property value="code" /> )</td>
							<td>&nbsp; <s:iterator value="children">
									<s:if test="kind=='FUNC'">
										<s:if test="showChkbox">
											<input type="checkbox"
												<s:if test="exists(code)">checked</s:if> />
										</s:if>
										<s:property value="name" />
											(
											<s:property value="code" />
											)
										</s:if>
								</s:iterator></td>
						</tr>
					</s:if>
				</s:iterator>
			</s:if>
		</s:iterator>
	</table>
</div>
